-include rules.mk

SOURCE=./

OBJS :=$(notdir $(patsubst %.c, %.o,$(foreach OBJTREE,$(SOURCE),$(wildcard $(OBJTREE)/*.c))))
vpath %.o $(OBJSDIR)	
vpath %.c $(SOURCE)	


all:$(OBJS)

%.o:%.c
	$(CC) $(INCLUDES) $(CFLAGS) -c -o $(OBJSDIR)/$@ $<

.PHONY:clean
clean:
	rm -f *.o $(OBJSDIR)/*.o


